﻿using System;
using StructureMap;

namespace WS.EKA.Utilities.Core
{
    [PluginFamily(IsSingleton = true)]
    public interface ISessionRepository
    {
        object this[string key] { get; set; }

        string TryGet(string key);
        string TryGet(string key, Func<string> getDefault);
        void SetTimeout(int timeoutSeconds);
        void Remove(string key);
        void Clear();
    }
}
